package com.yuntsg.ruiijn.databse_search.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import common.vo.ContentsComparisonRes;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

@TableName(value = "search_record")
@Data
@Accessors(chain = true)
public class SearchRecord {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer uId;

    private Integer rId;

    @TableField(value = "list_id")
    private List<Integer> listId;

    @TableField(value = "todo_list", updateStrategy = FieldStrategy.IGNORED, insertStrategy = FieldStrategy.IGNORED)
    private List<Integer> todoList;

    private Integer source;

    @TableField(value = "rids", updateStrategy = FieldStrategy.IGNORED, insertStrategy = FieldStrategy.IGNORED)
    private List<Integer> rids;

    private Integer topk;

    private Integer level;

    private Integer status;

    private Integer readStatus;

    private Long createTime;

    private Long finishTime;

    @TableField(value = "json_result")
    private List<ContentsComparisonRes> jsonResult;


}
